<%--
  Created by IntelliJ IDEA.
  User: 11965
  Date: 2020/9/10
  Time: 8:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head lang="en">

  <title>系统登录 - 超市订单管理系统</title>
  <link type="text/css" rel="stylesheet" href="statics/css/style.css" />

</head>
<body>


<c:if test="${requestScope.usernameFlag!=null}">
  <script>
      alert("用户不存在")
  </script>

</c:if>
<c:if test="${requestScope.passwordFlag!=null}">
  <script>
      alert("密码输入不正确")
  </script>

</c:if>
<section class="loginBox">
  <header class="loginHeader">
    <h1>超市订单管理系统</h1>
  </header>
  <section class="loginCont">
    <form class="loginForm" action="login"  method="post" >
      <input type="hidden" name="mode" value="login"/>
      <div class="info"></div>
      <div class="inputbox">
        <label for="user">用户名：</label>
        <input type="text" class="input-text" name="username"  placeholder="请输入用户名" required/>
      </div>
      <div class="inputbox">
        <label for="mima">密码：</label>
        <input type="password" name="userpassword" placeholder="请输入密码" required/>
      </div>
      <div class="subBtn">
        <input type="submit" value="登录"/>
        <input type="reset" value="重置"/>
      </div>
    </form>
  </section>
</section>
</body>
</html>

